package com.im.partchat.bean.learn;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by flyou on 2017/6/30.
 * VersionCode: 1
 * Desc:
 */

public class Tab1New implements Parcelable {


    /**
     * title : 三门峡市个私协会组织开展“传承和弘扬雷锋精神”志愿服务活动
     * desc : null
     * url : ../list/8a488a8f5cf375a5015cf375bbcb0005
     * subInfo : 新闻动态
     * date : 2017-03-06
     * img : http://www.smxfgdj.com//d/file/news/tp/e57b452b577bed0dc8997bd4e956fca7.jpg
     * commentNo : 0
     */

    private String title;
    private String desc;
    private String url;
    private String subInfo;
    private String date;
    private String img;
    private int commentNo;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSubInfo() {
        return subInfo;
    }

    public void setSubInfo(String subInfo) {
        this.subInfo = subInfo;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getCommentNo() {
        return commentNo;
    }

    public void setCommentNo(int commentNo) {
        this.commentNo = commentNo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.desc);
        dest.writeString(this.url);
        dest.writeString(this.subInfo);
        dest.writeString(this.date);
        dest.writeString(this.img);
        dest.writeInt(this.commentNo);
    }

    public Tab1New() {
    }

    protected Tab1New(Parcel in) {
        this.title = in.readString();
        this.desc = in.readString();
        this.url = in.readString();
        this.subInfo = in.readString();
        this.date = in.readString();
        this.img = in.readString();
        this.commentNo = in.readInt();
    }

    public static final Parcelable.Creator<Tab1New> CREATOR = new Parcelable.Creator<Tab1New>() {
        @Override
        public Tab1New createFromParcel(Parcel source) {
            return new Tab1New(source);
        }

        @Override
        public Tab1New[] newArray(int size) {
            return new Tab1New[size];
        }
    };
}
